@inherits Microsoft.VisualStudio.Web.CodeGeneration.Templating.RazorTemplateBase
@using System.Collections.Generic
@using System.Linq
@@using Microsoft.AspNetCore.Identity
@{
    if (Model.UserClassNamespace != "Microsoft.AspNetCore.Identity")
    {
@:@@using @Model.UserClassNamespace
    }
}
@@inject SignInManager<@Model.UserClass> SignInManager
@@inject UserManager<@Model.UserClass> UserManager

@{
@:@@if (SignInManager.IsSignedIn(User))
@:{
@:    <form asp-area="Identity" asp-page="/Account/Logout" asp-route-returnUrl="@@Url.Page("/Index", new { area = "" })" method="post" id="logoutForm" class="navbar-right">
@:        <ul class="nav navbar-nav navbar-right">
@:            <li>
@:                <a asp-area="Identity" asp-page="/Account/Manage/Index" title="Manage">Hello @@UserManager.GetUserName(User)!</a>
@:            </li>
@:            <li>
@:                <button type="submit" class="btn btn-link navbar-btn navbar-link">Logout</button>
@:            </li>
@:        </ul>
@:    </form>
@:}
@:else
@:{
@:    <ul class="nav navbar-nav navbar-right">
@:        <li><a asp-area="Identity" asp-page="/Account/Register">Register</a></li>
@:        <li><a asp-area="Identity" asp-page="/Account/Login">Login</a></li>
@:    </ul>
@:}
}